package wayPointTest;

import static org.junit.Assert.*;
import junit.framework.*;

import java.util.ArrayList;

import junit.framework.Assert;

import lejos.robotics.navigation.WayPoint;

import org.junit.Test;

import Movement.NERoom;

public class NEDestinationPathToCenter {
	
	@Test
	public void pathToCenterShouldReturnTheInverseOfPath() {
		NERoom destination = new NERoom();
		
		WayPoint point1 = new WayPoint(1,1);
		WayPoint point2 = new WayPoint(2,2);
		WayPoint point3 = new WayPoint(3,3);
		
		destination	.addWayPoint(point1)
					.addWayPoint(point2)
					.addWayPoint(point3);
		
		ArrayList<WayPoint> pathToCenter = new ArrayList<WayPoint>();
		pathToCenter.add(point3);
		pathToCenter.add(point2);
		pathToCenter.add(point1);
		assertEquals(destination.getPathToCenter(), pathToCenter);
		
		
	}

}
